export default {
  namespace: 'isLogin',
  state: {
    isLogin: false,
    username: undefined,
  },
  reducers: {
    // 同步修改无副作用
    changeLogin(state: object, { payload }: any) {
      return {
        ...state,
        ...payload,
      };
    },
  },
  effects: {
    // 异步操作
  },
};
